﻿@using admin.Model
@{
    ViewData["Title"] = "OrderManage";
    Layout = "~/Views/Shared/_MainLayout.cshtml";
    var orders = Model as List<Order>;
}

<div class="header">

    <h1 class="page-title">订单管理</h1>
</div>

<ul class="breadcrumb">
    <li><a href="index.html">订单管理</a> <span class="divider">/</span></li>
    <li class="active">订单信息</li>
</ul>

<div class="container-fluid">
    <div class="row-fluid">

        <div class="btn-toolbar">
            <button class="btn btn-primary"><i class="icon-plus"></i> 增加图书</button>
            <button class="btn">删除图书</button>
            <button class="btn">修改图书</button>
            <div class="btn-group">
            </div>
        </div>
        <div class="well">
            <table class="table">
                <thead>
                    <tr>
                        <th>订单ID</th>
                        <th>货物编号</th>
                        <th>下单时间</th>
                        <th>付款时间</th>
                        <th>总价</th>
                        <th>订单状态</th>
                        <th style="width: 26px;"></th>
                    </tr>
                </thead>
                <tbody>
                    @for (int i = 0; i < orders.Count; i++)
                    {
                        <tr>
                            <td>@orders[i].Id</td>
                            <td>@orders[i].Cid</td>
                            <td>@orders[i].OrderTime</td>
                            <td>@orders[i].PayTime</td>
                            <td>@orders[i].TotalPrice</td>
                            <td>@orders[i].OrderStatus</td>
                            <td>
                                <a href="user.html"><i class="icon-pencil"></i></a>
                                <a href="#myModal" role="button" data-toggle="modal"><i class="icon-remove"></i></a>
                            </td>
                        </tr>
                    }

                </tbody>
            </table>
        </div>
        <div class="pagination">
            <ul>
                <li><a href="#">Prev</a></li>
                <li><a href="#">1</a></li>
                <li><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">4</a></li>
                <li><a href="#">Next</a></li>
            </ul>
        </div>

        <div class="modal small hide fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 id="myModalLabel">Delete Confirmation</h3>
            </div>
            <div class="modal-body">
                <p class="error-text"><i class="icon-warning-sign modal-icon"></i>Are you sure you want to delete the book</p>
            </div>
            <div class="modal-footer">
                <button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
                <button class="btn btn-danger" data-dismiss="modal">Delete</button>
            </div>
        </div>

    </div>
</div>
